/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-08-19 10:17:51
 * @LastEditTime: 2019-08-19 11:42:47
 * @LastEditors: Please set LastEditors
 */
Component({
  properties: {
    src: {
      type: String
    },
    srcs:{
      type:Array
    },
    canOpen:{
      type:Boolean,
      value:false
    },
    mode: {
      type: String,
      value: 'aspectFill'
    },
    size: {
      type: String
    },
    width:{
      type: String
    },
    height:{
      type: String
    },
    inStyle:{
      type: String
    }
  },
  methods:{
    toOpen(){
      var that = this;
      wx.previewImage({
        current: that.properties.src,
        urls: that.properties.srcs
      });
    }
  }
})